#pragma once

#include <QVector3D>
#include <QObject>
#include <QByteArray>
#include "rviz_custom_plugins/models/plane.h"


namespace rviz_custom_plugins 
{


namespace models 
{


class Planes
{

public:

    Planes() = default;

    Planes(const Planes& other) : planes(other.planes) {}

    ~Planes() = default;

    std::vector<Plane> planes;

};


inline void to_json(json& j, const Planes& planes)
{
    j = json{
        {"planes", planes.planes}
    };
}


inline void from_json(const json&j, Planes& planes)
{
    planes.planes = j.at("planes");
}

}


}



Q_DECLARE_METATYPE(rviz_custom_plugins::models::Planes)